package gek.uni.diplom.integrate.wizard;

import gek.uni.diplom.integrate.wizard.page.TestDescriptionSelectPage;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
import org.eclipse.ui.internal.wizards.newresource.ResourceMessages;
import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;

public class GenerateTestsWizard extends BasicNewResourceWizard  {

  private WizardPage mainPage;
  private IWorkbench workbench;
  private IStructuredSelection selection;
  
  public GenerateTestsWizard() {
    super();
  }
  
  @Override
  public boolean canFinish() {
    // TODO Auto-generated method stub
    return super.canFinish();
  }
  
  
  @Override
  public boolean performFinish() {
    System.out.println("LaLa");
    return true;
  }

  @Override
  public void init(IWorkbench workbench, IStructuredSelection selection) {
    super.init(workbench, selection);
    setWindowTitle(ResourceMessages.FileResource_shellTitle);
    setNeedsProgressMonitor(true);
  }

  @Override
  public void addPages() {
    super.addPages();
    mainPage = new TestDescriptionSelectPage("Name");
//    mainPage = new WizardNewFileCreationPage("newFilePage1", getSelection());//$NON-NLS-1$
    mainPage.setTitle("My");//ResourceMessages.FileResource_pageTitle);
    mainPage.setDescription("My");//(ResourceMessages.FileResource_description); 
    addPage(mainPage);
  }
  
}
